import time,datetime
#time1 = 'Tue, 03 Sep 2019 20:37:49 GMT'
import re
#print time1.strftime('%Y-%m-%d %H:%M:%S')
#print time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(datetime.now()))
import os

from log_kafka import blemessage,bluemessage,wifimessage
a = "ProbeReqAtk"
#print wifimessage.wifiDossDic(a)
a =['\u5c0f\u7c73\u624b\u673a\u6025\u6025\u6025','kj\\u00e2\\u0080\\u0099s mi6',
    '\u7ea2\u7c73\u624b\u673a']
for i in a:
    print i.decode('unicode_escape')
    #print unicode(i).encode('utf-8')
'''
result = os.popen('ifconfig')
res = result.read()
macR = "Access Point:\s "
line = "zzaaaaa Access Point: 00:1c:42:00:00:08"
mac = "Access Point: [0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}"
aa = re.findall(mac,line)[0]
print aa
'''
'''
aa='["WPA", "WPA2"]'
ss =re.sub('[\[\]\"]','',aa)
print ss
'''
'''
data2 = '3286-00124B001D1A980F%'.split("-")
interface = "zigbee"
addr = data2[0]
data1 = data.split(":")
print data1[0],data1[1][-1]
if data1[0]=='siyaosu' and data1[1][-1] =='%':
    print 'ssss'

print data.find('asadasdasd')
index = data.find('siyaosu')
if data.find('siyaosu'):
    print index,data[data.find('siyaosu'):data.find('%')+1]
'''
'''
import threading
import time


def fun1():
    while True:
        time.sleep(2)
        print("fun1")


def fun2():
    while True:
        time.sleep(2)
        print("fun2")


threads = []
threads.append(threading.Thread(target=fun1))
threads.append(threading.Thread(target=fun2))

if __name__ == '__main__':
    for t in threads:
        t.start()
'''